<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<title>拉活配置列表</title>
<@fm.header />
<style type="text/css">
body {
	font: 12px/20px "微软雅黑", "宋体", Arial, sans-serif, Verdana, Tahoma;
	padding: 0;
	margin: 0;
}
.layout-split-proxy-h{
	position:absolute;
	width:2px;
	background:#888;
	font-size:1px;
	cursor:e-resize;
	display:none;
	z-index:5;
}
.layout-split-north{
	border-bottom:5px solid #efefef;
}
.layout-split-south{
	border-top:5px solid #efefef;
}
.layout-split-east{
	border-left:0px solid #efefef;
}
.layout-split-west{
	border-right:0px solid #efefef;
}
a:link {
 text-decoration: none;
}
a:visited {
 text-decoration: none;
}
a:hover {
 text-decoration: underline;
}
a:active {
 text-decoration: none;
}
.cs-north {
	height:40px;
	overflow:hidden;
}
.cs-north-bg {
	width: 100%;
	height: 100%;
	background: url(/resources/js/easyui/themes/bootstrap/images/header_bg.png) repeat-x;
}
.cs-north-logo {
	height: 30px;
	margin: 10px 0px 20px 5px;
	display: inline-block;
	color:#0E2D5F;
	font-size:20px;
	font-weight:bold;
	text-decoration:none;
}
.cs-north-info {
	position: absolute;
	color: #777;
	top: 10px;
	right: 30px;
	display: inline-block;
}
</style>
<script type="text/javascript" src="/resources/js/brushConfig/configList.js">


</script>
</head>
<body class="cmp-list-body">
	<div id="tb" style="padding:3px">
        <span>编号</span>
        <input id="brushId" class="easyui-textbox" style="width: 155px;" name="brushId"/>

        <span>关键字</span>
        <input id="name" class="easyui-textbox" style="width: 155px;" name="name"/>

        <span>是否查询mark包</span>
        <input type="hidden" name="isSearchApk" id="isSearchApk" value='0'></input>
        <input type="checkbox"  id="isSearchApkCheck" />


        <a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="doSearch();">查询</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="javascript:add()">新增</a>
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="javascript:edit()">编辑</a>
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="javascript:del()">删除</a>
	</div>
	<div id="mainPanle" region="center" border="false">
		<table id="tt" class="easyui-datagrid" title="拉活配置" iconCls="icon-save" toolbar="#tb" rownumbers="true" idField="id"
			url="/brushConfig/list?json" singleSelect="true" checkOnSelect="false" selectOnCheck="false" pagination="true" fitColumns="true" pageSize="15" pageList="[15,30,60,80,100]"> 
		    <thead>		    
		    	<tr>
		        	<th align="center" width="5%" field="id">编号</th>
		            <th align="center" width="10%" field="name">名称</th>
                    <th align="center" width="20%" field="brushTitle">标题</th>
		        	<th align="center" width="10%" field="url">链接</th>
		        	<th align="center" width="5%" field="minTotal">最小值</th>
		        	<th align="center" width="5%" field="maxTotal">最大值</th>
		            <th align="center" width="5%" field="taskNum">任务量</th>
		            <th align="center" width="5%" field="minFilterDay">最小天</th>
                    <th align="center" width="5%" field="maxFilterDay">最大天</th>
		            <th align="center" width="5%" field="apk" formatter="formatterApk">配置apk</th>
		        	<th align="center" width="5%"  field="prefix" formatter="formatterCheck">链接校验</th>
		        	<th align="center" width="10%" field="createTime">创建时间</th>
                    <th align="center" width="10%" field="modifyTime">修改时间</th>
		        </tr>
		    </thead>   
		</table>
	</div>
	<div id="addWin" class="easyui-window" title="配置校验" closed="true" collapsible="false" minimizable="false"  maximizable="false" style="width:500px;height:450px"   
        data-options="iconCls:'icon-save',modal:true">
     <div fit="true">
        <form id="addForm" method="post">
            <input id="idId"  name="id" type="hidden"/>   
            <table>
                <tr>
                     <td align="left">链接前缀校验</td>
                     <td><input id="prefix" name="prefix" style="width:400px"></input></td>
                </tr>
                <tr>
                    <td align="left">链接后缀校验</td>
                     <td><input id="suffix" name="suffix" style="width:400px"></input></td>
                </tr>
           </table>
        </form>
        <div style="padding: 25px; text-align: center;">
            <a href="#" class="easyui-linkbutton" onclick="cancel();">取消</a>
            <a href="#" class="easyui-linkbutton"  onclick="save();">保存</a> 
        </div>
    </div>
</div>
</body>


<script>

    $("#isSearchApkCheck").on('click',function(){
        if ($("#isSearchApkCheck").is(':checked')) {
            $("#isSearchApk").val(1);
        } else {
            $("#isSearchApk").val(0);
        }
    })


</script>

</html>